package com.example.controller.flowable;
import com.example.service.flowable.FlowableGeneralService;
import io.swagger.annotations.Api;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.common.engine.impl.util.IoUtil;
import org.flowable.engine.ProcessEngineConfiguration;
import org.flowable.image.ProcessDiagramGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;

/**
 * flowable工作流公共类
 *
 * @author wsl
 */
@RestController
@RequestMapping("/flowable")
@Api(tags = "flowable工具类")
public class FlowableController {

    @Autowired
    private FlowableGeneralService flowableGeneralService;

    @GetMapping("resource-view")
    public void resourceView(@RequestParam String processDefinitionId, String processInstanceId, HttpServletResponse response) {
//        flowableGeneralService.picResourceView(processDefinitionId,processInstanceId,response);
    }
}
